package com.aaa.project.commdetail.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

/**
 * @author baibin
 * @version 1.0
 * @date 2025/4/22 18:28
 * @description TempTimeStatOnlineNew
 */
@Data
public class TempTimeStatOnlineNew2 {
    private String userId;       // user_id
    private String brasPort;     // bras_port
    private String userCityNo;   // user_city_no

    @JsonFormat(pattern = "yyyy-MM-dd")// online
    private Date parDay;         // par_day

    private String online1;         // 时间段1的在线状态
    private String online2;         // 时间段2的在线状态
    private String online3;         // 时间段3的在线状态
    private String online4;         // 时间段4的在线状态
    private String online5;         // 时间段5的在线状态
    private String online6;         // 时间段6的在线状态
    private String online7;         // 时间段7的在线状态
    private String online8;         // 时间段8的在线状态
    private String online9;         // 时间段9的在线状态
    private String online10;        // 时间段10的在线状态
    private String online11;        // 时间段11的在线状态
    private String online12;        // 时间段12的在线状态
    private String online13;        // 时间段13的在线状态
    private String online14;        // 时间段14的在线状态
    private String online15;        // 时间段15的在线状态
    private String online16;        // 时间段16的在线状态
    private String online17;        // 时间段17的在线状态
    private String online18;        // 时间段18的在线状态
    private String online19;        // 时间段19的在线状态
    private String online20;        // 时间段20的在线状态
    private String online21;        // 时间段21的在线状态
    private String online22;        // 时间段22的在线状态
    private String online23;        // 时间段23的在线状态
    private String online24;        // 时间段24的在线状态
    private String online25;        // 时间段25的在线状态
    private String online26;        // 时间段26的在线状态
    private String online27;        // 时间段27的在线状态
    private String online28;        // 时间段28的在线状态
    private String online29;        // 时间段29的在线状态
    private String online30;        // 时间段30的在线状态
    private String online31;        // 时间段31的在线状态
    private String online32;        // 时间段32的在线状态
    private String online33;        // 时间段33的在线状态
    private String online34;        // 时间段34的在线状态
    private String online35;        // 时间段35的在线状态
    private String online36;        // 时间段36的在线状态
    private String online37;        // 时间段37的在线状态
    private String online38;        // 时间段38的在线状态
    private String online39;        // 时间段39的在线状态
    private String online40;        // 时间段40的在线状态
    private String online41;        // 时间段41的在线状态
    private String online42;        // 时间段42的在线状态
    private String online43;        // 时间段43的在线状态
    private String online44;        // 时间段44的在线状态
    private String online45;        // 时间段45的在线状态
    private String online46;        // 时间段46的在线状态
    private String online47;        // 时间段47的在线状态
    private String online48;        // 时间段48的在线状态
    private String online49;        // 时间段49的在线状态
    private String online50;        // 时间段50的在线状态
    private String online51;        // 时间段51的在线状态
    private String online52;        // 时间段52的在线状态
    private String online53;        // 时间段53的在线状态
    private String online54;        // 时间段54的在线状态
    private String online55;        // 时间段55的在线状态
    private String online56;        // 时间段56的在线状态
    private String online57;        // 时间段57的在线状态
    private String online58;        // 时间段58的在线状态
    private String online59;        // 时间段59的在线状态
    private String online60;        // 时间段60的在线状态
    private String online61;        // 时间段61的在线状态
    private String online62;        // 时间段62的在线状态
    private String online63;        // 时间段63的在线状态
    private String online64;        // 时间段64的在线状态
    private String online65;        // 时间段65的在线状态
    private String online66;        // 时间段66的在线状态
    private String online67;        // 时间段67的在线状态
    private String online68;        // 时间段68的在线状态
    private String online69;        // 时间段69的在线状态
    private String online70;        // 时间段70的在线状态
    private String online71;        // 时间段71的在线状态
    private String online72;        // 时间段72的在线状态
    private String online73;        // 时间段73的在线状态
    private String online74;        // 时间段74的在线状态
    private String online75;        // 时间段75的在线状态
    private String online76;        // 时间段76的在线状态
    private String online77;        // 时间段77的在线状态
    private String online78;        // 时间段78的在线状态
    private String online79;        // 时间段79的在线状态
    private String online80;        // 时间段80的在线状态
    private String online81;        // 时间段81的在线状态
    private String online82;        // 时间段82的在线状态
    private String online83;        // 时间段83的在线状态
    private String online84;        // 时间段84的在线状态
    private String online85;        // 时间段85的在线状态
    private String online86;        // 时间段86的在线状态
    private String online87;        // 时间段87的在线状态
    private String online88;        // 时间段88的在线状态
    private String online89;        // 时间段89的在线状态
    private String online90;        // 时间段90的在线状态
    private String online91;        // 时间段91的在线状态
    private String online92;        // 时间段92的在线状态
    private String online93;        // 时间段93的在线状态
    private String online94;        // 时间段94的在线状态
    private String online95;        // 时间段95的在线状态
    private String online96;        // 时间段96的在线状态


    public void setOnline(int i, String online) {
        switch (i) {
            case 1: this.online1 = online; break;
            case 2: this.online2 = online; break;
            case 3: this.online3 = online; break;
            case 4: this.online4 = online; break;
            case 5: this.online5 = online; break;
            case 6: this.online6 = online; break;
            case 7: this.online7 = online; break;
            case 8: this.online8 = online; break;
            case 9: this.online9 = online; break;
            case 10: this.online10 = online; break;
            case 11: this.online11 = online; break;
            case 12: this.online12 = online; break;
            case 13: this.online13 = online; break;
            case 14: this.online14 = online; break;
            case 15: this.online15 = online; break;
            case 16: this.online16 = online; break;
            case 17: this.online17 = online; break;
            case 18: this.online18 = online; break;
            case 19: this.online19 = online; break;
            case 20: this.online20 = online; break;
            case 21: this.online21 = online; break;
            case 22: this.online22 = online; break;
            case 23: this.online23 = online; break;
            case 24: this.online24 = online; break;
            case 25: this.online25 = online; break;
            case 26: this.online26 = online; break;
            case 27: this.online27 = online; break;
            case 28: this.online28 = online; break;
            case 29: this.online29 = online; break;
            case 30: this.online30 = online; break;
            case 31: this.online31 = online; break;
            case 32: this.online32 = online; break;
            case 33: this.online33 = online; break;
            case 34: this.online34 = online; break;
            case 35: this.online35 = online; break;
            case 36: this.online36 = online; break;
            case 37: this.online37 = online; break;
            case 38: this.online38 = online; break;
            case 39: this.online39 = online; break;
            case 40: this.online40 = online; break;
            case 41: this.online41 = online; break;
            case 42: this.online42 = online; break;
            case 43: this.online43 = online; break;
            case 44: this.online44 = online; break;
            case 45: this.online45 = online; break;
            case 46: this.online46 = online; break;
            case 47: this.online47 = online; break;
            case 48: this.online48 = online; break;
            case 49: this.online49 = online; break;
            case 50: this.online50 = online; break;
            case 51: this.online51 = online; break;
            case 52: this.online52 = online; break;
            case 53: this.online53 = online; break;
            case 54: this.online54 = online; break;
            case 55: this.online55 = online; break;
            case 56: this.online56 = online; break;
            case 57: this.online57 = online; break;
            case 58: this.online58 = online; break;
            case 59: this.online59 = online; break;
            case 60: this.online60 = online; break;
            case 61: this.online61 = online; break;
            case 62: this.online62 = online; break;
            case 63: this.online63 = online; break;
            case 64: this.online64 = online; break;
            case 65: this.online65 = online; break;
            case 66: this.online66 = online; break;
            case 67: this.online67 = online; break;
            case 68: this.online68 = online; break;
            case 69: this.online69 = online; break;
            case 70: this.online70 = online; break;
            case 71: this.online71 = online; break;
            case 72: this.online72 = online; break;
            case 73: this.online73 = online; break;
            case 74: this.online74 = online; break;
            case 75: this.online75 = online; break;
            case 76: this.online76 = online; break;
            case 77: this.online77 = online; break;
            case 78: this.online78 = online; break;
            case 79: this.online79 = online; break;
            case 80: this.online80 = online; break;
            case 81: this.online81 = online; break;
            case 82: this.online82 = online; break;
            case 83: this.online83 = online; break;
            case 84: this.online84 = online; break;
            case 85: this.online85 = online; break;
            case 86: this.online86 = online; break;
            case 87: this.online87 = online; break;
            case 88: this.online88 = online; break;
            case 89: this.online89 = online; break;
            case 90: this.online90 = online; break;
            case 91: this.online91 = online; break;
            case 92: this.online92 = online; break;
            case 93: this.online93 = online; break;
            case 94: this.online94 = online; break;
            case 95: this.online95 = online; break;
            case 96: this.online96 = online; break;
        }
    }

    public String getOnline(int i) {
        switch (i) {
            case 1: return this.online1;
            case 2: return this.online2;
            case 3: return this.online3;
            case 4: return this.online4;
            case 5: return this.online5;
            case 6: return this.online6;
            case 7: return this.online7;
            case 8: return this.online8;
            case 9: return this.online9;
            case 10: return this.online10;
            case 11: return this.online11;
            case 12: return this.online12;
            case 13: return this.online13;
            case 14: return this.online14;
            case 15: return this.online15;
            case 16: return this.online16;
            case 17: return this.online17;
            case 18: return this.online18;
            case 19: return this.online19;
            case 20: return this.online20;
            case 21: return this.online21;
            case 22: return this.online22;
            case 23: return this.online23;
            case 24: return this.online24;
            case 25: return this.online25;
            case 26: return this.online26;
            case 27: return this.online27;
            case 28: return this.online28;
            case 29: return this.online29;
            case 30: return this.online30;
            case 31: return this.online31;
            case 32: return this.online32;
            case 33: return this.online33;
            case 34: return this.online34;
            case 35: return this.online35;
            case 36: return this.online36;
            case 37: return this.online37;
            case 38: return this.online38;
            case 39: return this.online39;
            case 40: return this.online40;
            case 41: return this.online41;
            case 42: return this.online42;
            case 43: return this.online43;
            case 44: return this.online44;
            case 45: return this.online45;
            case 46: return this.online46;
            case 47: return this.online47;
            case 48: return this.online48;
            case 49: return this.online49;
            case 50: return this.online50;
            case 51: return this.online51;
            case 52: return this.online52;
            case 53: return this.online53;
            case 54: return this.online54;
            case 55: return this.online55;
            case 56: return this.online56;
            case 57: return this.online57;
            case 58: return this.online58;
            case 59: return this.online59;
            case 60: return this.online60;
            case 61: return this.online61;
            case 62: return this.online62;
            case 63: return this.online63;
            case 64: return this.online64;
            case 65: return this.online65;
            case 66: return this.online66;
            case 67: return this.online67;
            case 68: return this.online68;
            case 69: return this.online69;
            case 70: return this.online70;
            case 71: return this.online71;
            case 72: return this.online72;
            case 73: return this.online73;
            case 74: return this.online74;
            case 75: return this.online75;
            case 76: return this.online76;
            case 77: return this.online77;
            case 78: return this.online78;
            case 79: return this.online79;
            case 80: return this.online80;
            case 81: return this.online81;
            case 82: return this.online82;
            case 83: return this.online83;
            case 84: return this.online84;
            case 85: return this.online85;
            case 86: return this.online86;
            case 87: return this.online87;
            case 88: return this.online88;
            case 89: return this.online89;
            case 90: return this.online90;
            case 91: return this.online91;
            case 92: return this.online92;
            case 93: return this.online93;
            case 94: return this.online94;
            case 95: return this.online95;
            case 96: return this.online96;
        }
        return null;
    }

}
